package cn.ymatou.activityadmin.service;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.business.service.AdminCallService;
import com.ymttest.utils.EnvSetup;

public class SaveActivityCall extends YmatouAutoTestCall{

	private static String opurl ="/Activity/SaveActivity";
	
	public SaveActivityCall() {
		super(EnvSetup.getSystemUrl("activityadmin"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Cookie", cookie);
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public static void main(String[] args) throws ClientProtocolException, IOException {
		AdminCallService.getLoginCookieList();
		SaveActivityCall approveCall= new SaveActivityCall();
		approveCall.setCookies(AdminCallService.getLoginCookieList());
		
		
		approveCall.callAndGetReturnData();
	}
}

